package cn.icanci.learn.v1.aop;

/**
 * @author icanci
 * @date Created in 2021/06/27 17:08
 * @version 1.0
 */
public class AnimalMainTest {
    public static void main(String[] args) {
        Animal cat = new Cat();
        JDKDynamicProxy jdkDynamicProxy = new JDKDynamicProxy(cat);
        Animal animal = (Animal) jdkDynamicProxy.getProxy();
        animal.eat();

//        ProxyUtils.generateClassFile(animal.getClass(), animal.getClass().getName());
    }
}
